package com.qlogic.commons.resources.wrappers;

import java.util.ArrayList;

public class UnwrappMappings {
	
	private ArrayList mappings = new ArrayList ();
	
	public void addMapping (UnwrappMapping mapping) {
		mappings.add (mapping);
	}
	
	public UnwrappMapping getMapping (int index) {
		return (UnwrappMapping)mappings.get (index);
	}
	
	public void removeMapping (int index) {
		mappings.remove (index);
	}
	
	public void removeMapping (UnwrappMapping mapping) {
		mappings.remove (mapping);
	}
	
	public int getMappingsCount () {
		return mappings.size ();
	}
	
}
